package com.ruoyi.name_category.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 标题名称分类对象 name_category
 *
 * @author ruoyi
 * @date 2024-06-12
 */

public class NameCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 父分类 id */
    @Excel(name = "父分类 id")
    private Long parentId;

    /** 层级 */
    @Excel(name = "层级")
    private Long catLevel;

    /** 0 不显示，1 显示 */
    @Excel(name = "0 不显示，1 显示")
    private Integer isShow;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setCatLevel(Long catLevel)
    {
        this.catLevel = catLevel;
    }

    public Long getCatLevel()
    {
        return catLevel;
    }
    public void setIsShow(Integer isShow)
    {
        this.isShow = isShow;
    }

    public Integer getIsShow()
    {
        return isShow;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("catLevel", getCatLevel())
            .append("isShow", getIsShow())
            .append("sort", getSort())
            .toString();
    }

}
